package chapter06_object;

/**
 * ClassName: ValueTransferTest1
 * Package: OOP06
 * Description:
 *
 * @Author 安思宇
 * @Create 2025/3/5 18:55
 */
public class ValueTransferTest1 {
    public static void main(String[] args) {
        ValueTransferTest1  test=new ValueTransferTest1();
        int m=10;
        test.method1(m);
//        System.out.println(m);//10
        System.out.println(m);//10

    }
//    void method1(int m) {
//        m++;//输出的m还是10
//    }
    int method1(int m) {
        return ++m;//输出的m还是10
    }
}

